package ModelLayer;
/**
 * Write a description of class Staff here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Staff extends Person
{
    // instance variables - replace the example below with your own
    private String username;
    private String password;
    private int ordersSold;

    /**
     * Constructor for objects of class Staff
     */
    public Staff(int i, String n, String a, String pc, String ph, String e, String u, String ps)
    {
        super(i, n, a, pc, ph, e);
        username = u;
        password = ps;
        ordersSold = 0;
    }
    
    //get methods
    public String getUsername(){
        return username;
    }
    public String getPassword(){
        return password;
    }
    public int getOrdersSold(){
    	ordersSold = OrderList.getNoOrdersStaff(name);
    	return ordersSold;
    }
    
    //set methods
    public void setUsername(String username){
        this.username = username;
    }
    public void setPassword(String password){
        this.password = password;
    }
    
    public void ordersSold() { ordersSold++; }
    
}
